package com.jie.component.init.core;

import jakarta.annotation.PostConstruct;
import org.springframework.context.ConfigurableApplicationContext;

import static com.jie.component.init.constant.InitializeHandlerType.APPLICATION_POST_CONSTRUCT;

public class ApplicationPostConstructExecute extends AbstractApplicationExecute {

    public ApplicationPostConstructExecute(ConfigurableApplicationContext applicationContext) {
        super(applicationContext);
    }

    @PostConstruct
    public void postConstructExecute() {
        execute();
    }

    @Override
    public String type() {
        return APPLICATION_POST_CONSTRUCT;
    }
}
